import request from '@/utils/request'

// 查询右侧检定表格
export function listAdjust(query) {
    return request({
      url: '/resource/instrument/adjust/list',
      method: 'get',
      params: query
    })
  }

  export function listSelect(query) {
    return request({
      url: '/resource/instrument/adjust/selectList',
      method: 'get',
      params: query
    })
  }

// 查询右侧检定表单信息
export function formAdjust(instrumentId) {
    return request({
      url: '/resource/instrument/' + instrumentId,
      method: 'get',
    })
  }

  export function insertAdjust(data) {
    return request({
      url: '/resource/instrument/adjust',
      method: 'post',
      data: data
    })
  }

  // 删除检定校准记录
export function delAdjust(adjustIds) {
    return request({
      url: '/resource/instrument/adjust/delete/' + adjustIds,
      method: 'delete'
    })
  }

    // 删除检定校准记录
export function clearAdjust() {
  return request({
    url: '/resource/instrument/adjust/deleteCurrentUser/',
    method: 'delete'
  })
}